import { appTasks } from '@ohos/hvigor-ohos-plugin';
import { HvigorNode, HvigorPlugin } from '@ohos/hvigor'; // 实现自定义插件

export default {
  system: appTasks, /* Built-in plugin of Hvigor. It cannot be modified. */
  plugins: [
    customPlugin()// 应用自定义Plugin
  ], /* Custom plugin to extend the functionality of Hvigor. */
}

function customPlugin(): HvigorPlugin {
  return {
    pluginId: 'customPlugin',
    apply(node: HvigorNode) {
      // 插件主体
      console.log('hello customPlugin!');
    }
  }
}